package com.example.wujinapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.wujinapi.entity.Favourites;
import com.example.wujinapi.entity.Products;
import org.apache.ibatis.annotations.MapKey;

import java.util.List;
import java.util.Map;

/**
 * (Favourites)表服务接口
 *
 * @author makejava
 * @since 2023-07-10 22:36:08
 */
public interface FavouritesService extends IService<Favourites> {
    void addFavourite(Favourites favourites);
    void deleteFavourite(int favId);
    @MapKey("id")
    List<Map<String,Object>> getFavourites(int userid,int pageNum, int pageSize);
}

